package com.venutech.gongan.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.venutech.gongan.entity.WorkSpConfig;
import com.venutech.gongan.model.ResultFormat;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkSpConfigService {
    //工单添加
    ResultFormat insert(WorkSpConfig workSpConfig);

    //根据ID删除配置条目
    int delete(@Param("wkcfg_id") int wkcfg_id);

    //分页数据
    Page<WorkSpConfig> getInfo(Integer pageNo, Integer pageSize);

    //根据id修改配置
    int updateWorkSpConfig(WorkSpConfig workSpConfig);

    //根据ID返回对象
    WorkSpConfig getById(@Param("wkcfg_id") Integer wkcfg_id);

    WorkSpConfig getFirstSpUser(Integer workType);

    List<WorkSpConfig> getByWorkType(Integer workType);

}
